package com.dzx.design.behavioral.command;

/**
 * @author dzx
 * @ClassName:
 * @Description: 命令模式
 * @date 2019年08月14日 17:14:18
 */
public class Test {

    public static void main(String[] args) {


        Staff staff = new Staff();

        CourseVideo courseVideo = new CourseVideo("java设计模式");

        staff.addCommand(new OpenCourseVideo(courseVideo));
        staff.addCommand(new CloseCourseVideo(courseVideo));
        staff.executeCommand();

    }


}
